@import "@/styles/flex-init.scss";

.m-table {
  // 暂无数据
  .no-data {
    @extend .f-center;
    height: calc(100vh - 40px);
    color: $uni-text-color-grey;
  }

  .table-item {
    background-color: $fff;
    padding: 5px;
    border-bottom: 5px solid var(--box-bg);

    .title {
      &-1 {
        position: relative;
        color: var(--primary);
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;

        .status-name {
          padding: 1px 8px;
          border-radius: 5px;
          font-size: 12px;
          font-weight: normal;
          display: inline-block;
          transform: scale(0.8);
        }

        .special-field {
          padding: 2px 15px;
          border-radius: 5px;
          margin-left: 10px;
          background-color: var(--primary-plain);
        }
      }

      &-2 {
        font-size: 14px;
        border-bottom: var(--primary-border-line);
        padding-bottom: 5px;
        // margin-bottom: 10rpx;
        position: relative;

        .i {
          position: absolute;
          right: 5px;
          top: 3px;
        }

        .to-detail {
          position: absolute;
          width: 30px;
          height: 30px;
          right: 5px;
          top: -18px;
          background-color: var(--primary-plain);
          color: var(--primary);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .multiple,
        .multiple-active {
          position: absolute;
          right: 0;
          top: -20rpx;
          border-radius: 50%;
          font-size: 20px;
        }

        .multiple {
          color: var(--primary-plain);
        }

        .multiple-active {
          color: var(--primary);
        }
      }
    }

    .table-row {
      @extend .f-center;
      border-bottom: var(--primary-plain-dashed-line);

      .label,
      .value {
        font-size: 12px;
        display: flex;
        justify-content: space-between;
        width: 100%;
        flex-shrink: 0;
      }

      .label {
        color: var(--primary-text-label);
      }

      .value {
        color: var(--primary-text-value);

        .v {
          flex: 15;
          text-align: right;
        }
      }
    }

    .last-row {
      border-bottom: none;
    }
  }

  .item:nth-last-of-type(1) {
    border-bottom: none !important;
  }
}
